package Multithreading.Exercise004;

/**
 * ClassName:TherdDone001
 * Package:Multithreading.Exercise004
 * Description:
 *
 * @Author:ZhangXin
 * @Create:2023/3/6-21:48
 * @Version:v1.0
 */
public class ThreadDone001 {
    /*一共有1000张电影票,可以在两个窗口领取,假设每次领取的时间为3000毫秒,
    * 要求：请用多线程模拟买票过程并打印剩余电影票的数量*/
    public static void main(String[] args) {

        MyThread t1 = new MyThread();
        MyThread t2 = new MyThread();

        t1.setName("窗口1");
        t2.setName("窗口2");

        t1.start();
        t2.start();
    }
}
